package com.diana;

import java.util.List;

/***************************** IMPORT *****************************/


public class Recorder {
	
	/************ DECLARATIONS ***************/
	private MainActivity mActivity;

	
	/************ CONSTRUCTOR ****************/
	public Recorder(MainActivity activity) {
		this.mActivity = activity;
	} 
	
	
	/************** METHODES *****************/
	/**
	 * @brief Send the complete string to Carver.
	 * @param newSentence : string from the EditText of DianaScreen.
	 */
	public void newStringDetected(String newSentence){
		String separator = mActivity.getString(R.string.word_separator);
		List<String> wordCut;
		
		//Get the list cut by Carver Class 
		wordCut = mActivity.getCarver().setCompleteString(newSentence, separator);
	}
	
	
	/************* ACCESSORS *************/
}
